<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改小区信息列表')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-plot-edit" th:object="${sysAPlotList}">
            <input name="plotId" th:field="*{plotId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">小区编号：</label>
                <div class="col-sm-8">
                    <input name="plotId" th:field="*{plotId}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">公司：</label>
                <div class="col-sm-8">
                    <input name="plotCompany" th:field="*{plotCompany}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">小区：</label>
                <div class="col-sm-8">
                    <input name="PLOT" th:field="*{PLOT}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">小区地址：</label>
                <div class="col-sm-8">
                    <input name="plotAddress" th:field="*{plotAddress}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">总户数：</label>
                <div class="col-sm-8">
                    <input name="sumHose" th:field="*{sumHose}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">大门数(ge)：</label>
                <div class="col-sm-8">
                    <input name="gateNumber" th:field="*{gateNumber}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">建筑面积(平方米)：</label>
                <div class="col-sm-8">
                    <input name="coveredArea" th:field="*{coveredArea}" class="form-control" type="text" required>
                </div>
            </div>

        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/plot";
        $("#form-plot-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-plot-edit').serialize());
            }
        }
    </script>
</body>
</html>